package org.com.behavioralPattern.visitorPattern;

/**
 * @author Jonny
 * @version 1.0
 * @Description:
 * @date 2021/4/27 18:15
 */
public class TypeVisitor implements ComputerVisitor {
    @Override
    public void vistCPU(CPU cpu) {
        System.out.println("CPU型号："+cpu.getType());
    }

    @Override
    public void vistHarddisk(Harddisk harddisk) {
        System.out.println("硬盘型号："+harddisk.getType());
    }
}
